package BLL;

import DAL.StudentDAL;
import Entities.TblStudent;
import java.util.List;

public class StudentBLL {

    public StudentDAL dalObj;

    public boolean add(TblStudent obj){
        dalObj = new StudentDAL();
        return dalObj.add(obj);
    }

    public boolean update(TblStudent obj){
        dalObj = new StudentDAL();
        return dalObj.update(obj);
    }

    public boolean delete(TblStudent obj){
        dalObj = new StudentDAL();
        return dalObj.delete(obj);
    }
   
    public TblStudent getById(String id){

        dalObj = new StudentDAL();
        return dalObj.getById(id);
    }

    public List<TblStudent> getAll(){
        dalObj = new StudentDAL();
        return dalObj.getAll();
    }

    public List<TblStudent> getStudentByClassId(int classId){
        dalObj = new StudentDAL();
        return dalObj.getStudentByClassId(classId);
    }
    public boolean addByBranchId(TblStudent student,int branchId){
        dalObj = new StudentDAL();
        return dalObj.addByBranchId(student,branchId);
    }
}
